package com.ruoyi.buy.domain.entity.PO;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 材料清单明细-替代对象 buy_material_other_item
 * 
 * @author ruoyi
 * @date 2024-02-20
 */
public class BuyMaterialOtherItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 主表ID */
    @Excel(name = "主表ID")
    private Long nMainId;

    /** 零件代码 */
    @Excel(name = "零件代码")
    private String vSpa;

    /** 零件名称 */
    @Excel(name = "零件名称")
    private String vSpaName;

    /** 类型 */
    @Excel(name = "类型")
    private String vKind;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String vSpaModel;

    /** 品牌 */
    @Excel(name = "品牌")
    private String vSpaBrand;

    /** 单位 */
    @Excel(name = "单位")
    private String vUnit;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal nPrice;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal nQty;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 货期 */
    @Excel(name = "货期")
    private String nDays;

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getnDays() {
        return nDays;
    }

    public void setnDays(String nDays) {
        this.nDays = nDays;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setnMainId(Long nMainId) 
    {
        this.nMainId = nMainId;
    }

    public Long getnMainId() 
    {
        return nMainId;
    }
    public void setvSpa(String vSpa) 
    {
        this.vSpa = vSpa;
    }

    public String getvSpa() 
    {
        return vSpa;
    }
    public void setvSpaName(String vSpaName) 
    {
        this.vSpaName = vSpaName;
    }

    public String getvSpaName() 
    {
        return vSpaName;
    }
    public void setvKind(String vKind) 
    {
        this.vKind = vKind;
    }

    public String getvKind() 
    {
        return vKind;
    }
    public void setvSpaModel(String vSpaModel) 
    {
        this.vSpaModel = vSpaModel;
    }

    public String getvSpaModel() 
    {
        return vSpaModel;
    }
    public void setvSpaBrand(String vSpaBrand) 
    {
        this.vSpaBrand = vSpaBrand;
    }

    public String getvSpaBrand() 
    {
        return vSpaBrand;
    }
    public void setvUnit(String vUnit) 
    {
        this.vUnit = vUnit;
    }

    public String getvUnit() 
    {
        return vUnit;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setnPrice(BigDecimal nPrice) 
    {
        this.nPrice = nPrice;
    }

    public BigDecimal getnPrice() 
    {
        return nPrice;
    }
    public void setnQty(BigDecimal nQty) 
    {
        this.nQty = nQty;
    }

    public BigDecimal getnQty() 
    {
        return nQty;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nMainId", getnMainId())
            .append("vSpa", getvSpa())
            .append("vSpaName", getvSpaName())
            .append("vKind", getvKind())
            .append("vSpaModel", getvSpaModel())
            .append("vSpaBrand", getvSpaBrand())
            .append("vUnit", getvUnit())
            .append("delFlag", getDelFlag())
            .append("nPrice", getnPrice())
            .append("nQty", getnQty())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
                .append("nDays", getnDays())
                .append("supplier", getSupplier())
            .toString();
    }
}
